package com.example.fengsam.aidong.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.fengsam.aidong.R;
import com.example.fengsam.aidong.bean.SocialInfo;

import java.util.List;

/**
 * Created by fengsam on 17-9-19.
 */

public class SocialAdapter extends BaseQuickAdapter<SocialInfo,BaseViewHolder> {

    public SocialAdapter(@LayoutRes int layoutResId, @Nullable List<SocialInfo> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SocialInfo item) {
        helper.setText(R.id.tv_social_content,item.getContent());
    }
}
